package com.donfu.system.mapper.house;

import java.util.List;
import java.util.Map;

import com.donfu.system.domain.house.HouseStore;

/**
 * 店铺信息Mapper接口
 * 
 * @author donfu
 * @date 2021-12-01
 */
public interface HouseStoreMapper 
{
    /**
     * 查询店铺信息
     * 
     * @param id 店铺信息主键
     * @return 店铺信息
     */
    public HouseStore selectHouseStoreById(Long id);

    /**
     * 查询店铺信息列表
     * 
     * @param houseStore 店铺信息
     * @return 店铺信息集合
     */
    public List<HouseStore> selectHouseStoreList(HouseStore houseStore);

    /**
     * 新增店铺信息
     * 
     * @param houseStore 店铺信息
     * @return 结果
     */
    public int insertHouseStore(HouseStore houseStore);

    /**
     * 修改店铺信息
     * 
     * @param houseStore 店铺信息
     * @return 结果
     */
    public int updateHouseStore(HouseStore houseStore);

    /**
     * 删除店铺信息
     * 
     * @param id 店铺信息主键
     * @return 结果
     */
    public int deleteHouseStoreById(Long id);

    /**
     * 批量删除店铺信息
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHouseStoreByIds(Long[] ids);

    /**
     * 包含导购人数的商铺列表
     * @param houseStore
     * @return
     */
    List<Map<String,Object>> selectHouseStoreListIncluding(HouseStore houseStore);

    /**
     * 查询所有店铺所在的城市列表
     * @return
     */
    List<Map<String, String>> selectHouseStoreCityList();

    /**
     * 获取店铺总个数
     * @return
     */
    int selectHouseStoreCount(String cityId);
}
